/* =============== 全局变量 =============== */
:root {
  --primary: #2563eb;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --white: #ffffff;
  --border-radius: 12px;
  --shadow: 0 6px 20px rgba(0,0,0,0.08);
  --transition: all 0.3s ease;
}

/* =============== 通用重置 =============== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* =============== 按钮 =============== */
.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem; /* 减少内边距 */
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}
.btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
}

.btn-text {
  color: var(--text-light);
  background: transparent;
  padding: 0.65rem 0; /* 减少内边距 */
  border: none;
  font-size: 0.85rem; /* 稍微减小字体大小 */
}
.btn-text:hover {
  color: var(--primary);
}

/* =============== 导航栏（已优化高度） =============== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.6rem 0; /* 👈 高度降低 */
  height: 56px; /* 固定高度，避免布局跳动 */
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.2rem; /* 进一步缩小 */
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 1.2rem; /* 减少间隔 */
}
.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.9rem;
}
.nav-links a:hover {
  color: var(--primary);
}

/* =============== 主视觉区 =============== */
.hero {
  padding-top: 80px; /* 调整以匹配更矮的 navbar */
  padding-bottom: 70px;
  background-color: var(--bg-light);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

.hero-text h1 {
  font-size: 2.2rem; /* 减少主标题大小 */
  font-weight: 700;
  margin-bottom: 0.8rem; /* 减少底部外边距 */
  line-height: 1.25;
}

.subtitle {
  font-size: 1rem; /* 减少副标题大小 */
  color: var(--text-light);
  margin-bottom: 1.2rem; /* 减少底部外边距 */
}

.hero-buttons {
  display: flex;
  gap: 0.7rem; /* 减少按钮之间的间隙 */
  align-items: center;
  margin-top: 0.8rem; /* 减少顶部外边距 */
}

.images-row {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem; /* 减少图片间的间隔 */
}

.image-wrapper {
  flex: 1;
  min-width: 250px; /* 减少最小宽度 */
  max-width: 320px; /* 减少最大宽度 */
}

.image-wrapper img {
  width: 100%;
  height: auto;
  max-height: 380px; /* 减少最大高度 */
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: block;
}

/* =============== 功能区 =============== */
.features {
  padding: 60px 0; /* 减少上下填充 */
  background-color: white;
}

.features h2 {
  text-align: center;
  font-size: 1.5rem; /* 减少标题大小 */
  margin-bottom: 1.5rem; /* 减少底部外边距 */
  color: var(--text-dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 减少最小宽度 */
  gap: 1.2rem; /* 减少网格项之间的间隔 */
}

.feature-card {
  text-align: center;
  padding: 1.4rem; /* 减少内边距 */
  border-radius: var(--border-radius);
  background: var(--bg-light);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.icon {
  font-size: 1.6rem; /* 减少图标大小 */
  margin-bottom: 0.8rem; /* 减少底部外边距 */
  color: var(--primary);
}

.feature-card h3 {
  margin-bottom: 0.5rem; /* 减少底部外边距 */
  font-size: 1rem; /* 减少字体大小 */
  font-weight: 600;
}

.feature-card p {
  font-size: 0.85rem; /* 减少字体大小 */
  color: var(--text-light);
  line-height: 1.5;
}

/* =============== 演示视频区（预留） =============== */
.demo {
  padding: 60px 0; /* 减少上下填充 */
  background-color: var(--bg-light);
  text-align: center;
}

.demo h2 {
  margin-bottom: 1.5rem; /* 减少底部外边距 */
  font-size: 1.4rem; /* 减少字体大小 */
  color: var(--text-dark);
}

.video-wrapper {
  max-width: 700px; /* 减少最大宽度 */
  margin: 0 auto;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =============== 页脚（预留） =============== */
.footer {
  background-color: #1f2937;
  color: white;
  text-align: center;
  padding: 1.5rem 0; /* 减少上下填充 */
}

/* =============== 响应式 =============== */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .nav-links {
    display: none;
  }
  .hero-text h1 {
    font-size: 1.8rem; /* 进一步减少字体大小 */
  }
  .images-row {
    flex-direction: column;
    align-items: center;
    gap: 1rem; /* 减少间隔 */
  }
  .image-wrapper {
    max-width: 280px; /* 进一步减少最大宽度 */
  }
  .image-wrapper img {
    max-height: 320px; /* 进一步减少最大高度 */
  }
  .hero {
    padding-top: 76px; /* 匹配 navbar 高度 */
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card {
    padding: 1.2rem; /* 减少内边距 */
  }
}